﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 策略_工厂
{
    /// <summary>
    /// 非会员价格计算策略
    /// </summary>
    internal class StrategyCommon : IStrategy
    {
        public double CalculatePrice(IOrder order)
        {
            Order temp = (Order)order;
            return temp.UnitPrice * temp.Count;
        }
    }
}
